﻿//-----------------------------------------------------------------------
// <copyright file="AreaFactory.cs" company="Mulala">
//     Copyright Mulala. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

namespace Mulala.Cavan.Domain.MainBoundedContext.DictionaryModule
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;

    public static class AreaFactory
    {
        public static Area CreateArea(
                                string code,
                                string name,
                                string postCode,
                                int level,
                                int sort,
                                DateTime editTime,
                                string editUser)
        {
            Area area = new Area();
            area.ID = code;
            area.EditTime = editTime;
            area.EditUser = editUser;
            area.Level = level;
            area.PostCode = postCode;
            area.Sort = sort;
            area.CreateTime = DateTime.Now;

            return area;
        }
    }
}
